package com.ourteam.product.requirement.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:15
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductTeamRelate implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long productId;

    /**
     * Attribute productId Be Seted Falg
     */
    private boolean productIdSetted = false;

    /**
    * Attribute productId is Null Falg
    */
    private boolean productIdNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private long teamId;

    /**
     * Attribute teamId Be Seted Falg
     */
    private boolean teamIdSetted = false;

    /**
    * Attribute teamId is Null Falg
    */
    private boolean teamIdNull = false;
    private String productCode;

    /**
     * Attribute productCode Be Seted Falg
     */
    private boolean productCodeSetted = false;

    /**
    * Attribute productCode is Null Falg
    */
    private boolean productCodeNull = false;
    private String productName;

    /**
     * Attribute productName Be Seted Falg
     */
    private boolean productNameSetted = false;

    /**
    * Attribute productName is Null Falg
    */
    private boolean productNameNull = false;
    private String teamName;

    /**
     * Attribute teamName Be Seted Falg
     */
    private boolean teamNameSetted = false;
    private String teamCode;

    /**
     * Attribute teamCode Be Seted Falg
     */
    private boolean teamCodeSetted = false;
    private String teamMail;

    /**
     * Attribute teamMail Be Seted Falg
     */
    private boolean teamMailSetted = false;
    private String teamStatus;

    /**
     * Attribute teamStatus Be Seted Falg
     */
    private boolean teamStatusSetted = false;

    public ProductTeamRelate() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get productId
         *
         * @return long
         */
    final public long getProductId() {
        return productId;
    }

    /**
     * Set productId
     *
     * @param long
     */
    final public void setProductId(long productId) {
        this.productId = productId;

        this.productIdSetted = true;

        this.setProductIdNull(false);
    }

    /**
     * Get productId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductIdSetted() {
        return this.productIdSetted;
    }

    /**
     * Set productId Null
     *
     */
    final public void setProductIdNull() {
        this.productIdNull = true;
    }

    final public void setProductIdNull(boolean aNullFlag) {
        this.productIdNull = aNullFlag;
    }

    final public boolean isProductIdNull() {
        return this.productIdNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get teamId
         *
         * @return long
         */
    final public long getTeamId() {
        return teamId;
    }

    /**
     * Set teamId
     *
     * @param long
     */
    final public void setTeamId(long teamId) {
        this.teamId = teamId;

        this.teamIdSetted = true;

        this.setTeamIdNull(false);
    }

    /**
     * Get teamId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTeamIdSetted() {
        return this.teamIdSetted;
    }

    /**
     * Set teamId Null
     *
     */
    final public void setTeamIdNull() {
        this.teamIdNull = true;
    }

    final public void setTeamIdNull(boolean aNullFlag) {
        this.teamIdNull = aNullFlag;
    }

    final public boolean isTeamIdNull() {
        return this.teamIdNull;
    }

    /**
         * Get productCode
         *
         * @return String
         */
    final public String getProductCode() {
        if (isProductCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(productCode);
        }
    }

    /**
     * Set productCode
     *
     * @param String
     */
    final public void setProductCode(String productCode) {
        this.productCode = StringUtils.trim(productCode);

        this.productCodeSetted = true;

        this.setProductCodeNull(this.productCode == null);
    }

    /**
     * Get productCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductCodeSetted() {
        return this.productCodeSetted;
    }

    /**
     * Set productCode Null
     *
     */
    final public void setProductCodeNull() {
        this.productCodeNull = true;
    }

    final public void setProductCodeNull(boolean aNullFlag) {
        this.productCodeNull = aNullFlag;
    }

    final public boolean isProductCodeNull() {
        return this.productCodeNull;
    }

    /**
         * Get productName
         *
         * @return String
         */
    final public String getProductName() {
        if (isProductNameNull()) {
            return null;
        } else {
            return StringUtils.trim(productName);
        }
    }

    /**
     * Set productName
     *
     * @param String
     */
    final public void setProductName(String productName) {
        this.productName = StringUtils.trim(productName);

        this.productNameSetted = true;

        this.setProductNameNull(this.productName == null);
    }

    /**
     * Get productName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductNameSetted() {
        return this.productNameSetted;
    }

    /**
     * Set productName Null
     *
     */
    final public void setProductNameNull() {
        this.productNameNull = true;
    }

    final public void setProductNameNull(boolean aNullFlag) {
        this.productNameNull = aNullFlag;
    }

    final public boolean isProductNameNull() {
        return this.productNameNull;
    }

    /**
         * Get teamName
         *
         * @return String
         */
    final public String getTeamName() {
        return teamName;
    }

    /**
     * Set teamName
     *
     * @param String
     */
    final public void setTeamName(String teamName) {
        this.teamName = StringUtils.trim(teamName);

        this.teamNameSetted = true;
    }

    /**
     * Get teamName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTeamNameSetted() {
        return this.teamNameSetted;
    }

    /**
         * Get teamCode
         *
         * @return String
         */
    final public String getTeamCode() {
        return teamCode;
    }

    /**
     * Set teamCode
     *
     * @param String
     */
    final public void setTeamCode(String teamCode) {
        this.teamCode = StringUtils.trim(teamCode);

        this.teamCodeSetted = true;
    }

    /**
     * Get teamCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTeamCodeSetted() {
        return this.teamCodeSetted;
    }

    /**
         * Get teamMail
         *
         * @return String
         */
    final public String getTeamMail() {
        return teamMail;
    }

    /**
     * Set teamMail
     *
     * @param String
     */
    final public void setTeamMail(String teamMail) {
        this.teamMail = StringUtils.trim(teamMail);

        this.teamMailSetted = true;
    }

    /**
     * Get teamMail Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTeamMailSetted() {
        return this.teamMailSetted;
    }

    /**
         * Get teamStatus
         *
         * @return String
         */
    final public String getTeamStatus() {
        return teamStatus;
    }

    /**
     * Set teamStatus
     *
     * @param String
     */
    final public void setTeamStatus(String teamStatus) {
        this.teamStatus = StringUtils.trim(teamStatus);

        this.teamStatusSetted = true;
    }

    /**
     * Get teamStatus Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTeamStatusSetted() {
        return this.teamStatusSetted;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductTeamRelate) == false) {
            return false;
        }

        ProductTeamRelate other = (ProductTeamRelate) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("teamCode=");
        buffer.append(this.teamCode);

        buffer.append("teamMail=");
        buffer.append(this.teamMail);

        buffer.append("teamStatus=");
        buffer.append(this.teamStatus);

        buffer.append("productCode=");
        buffer.append(this.productCode);

        buffer.append("productName=");
        buffer.append(this.productName);

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("productId=");
        buffer.append(this.productId);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("teamId=");
        buffer.append(this.teamId);

        buffer.append("teamName=");
        buffer.append(this.teamName);

        buffer.append("]");

        return buffer.toString();
    }
}
